<!doctype html>
<html>
<head>
<title>移动端布局</title>
<style>
	#box{ width:100%; height:300px; background:red; }
</style>
</head>
<body>
<div id="box"></div>
</body>
<script>
var dpr=window.devicePixelRatio; 
var scale=1/dpr;
document.write('<meta name="viewport" content="widht=devide-width,initial-scale='+scale+',minimum-scale='+scale+',maximim-scale='+scale+',user-scalable=no">' );
</script>
</html>
